package org.idea.spring.aop.version2;

import org.idea.spring.aop.version2.service.TestService;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;

/**
 * @Author linhao
 * @Date created in 4:34 下午 2021/5/14
 */
@SpringBootApplication
public class Application implements CommandLineRunner {

    @Resource
    private TestService testService;

    public static void main(String[] args) {
        SpringApplication.run(Application.class);
    }

    @Override
    public void run(String... args) throws Exception {
        this.testService.doTest();
    }
}
